package utils;

import java.util.Date;
//订单类
public class Order {
    private  int order_id;//订单编号
    private int user_id;//用户编号
    private  int book_id;//图书编号
    private double price;//单价
    private  int num;//数量
    private  double total;//总价
    private Date time;//下单时间

    public int getOrder_id() {
        return order_id;
    }

    public void setOrder_id(int order_id) {
        this.order_id = order_id;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public int getBook_id() {
        return book_id;
    }

    public void setBook_id(int book_id) {
        this.book_id = book_id;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public double getTotal() {
        return total;
    }

    public void setTotal(double total) {
        this.total = total;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    @Override
    public String toString() {
        return "Order{" +
                "order_id=" + order_id +
                ", user_id=" + user_id +
                ", book_id=" + book_id +
                ", price=" + price +
                ", num=" + num +
                ", total=" + total +
                ", time=" + time +
                '}';
    }
}
